<script>

import { useStore } from "vuex"
export default {
    setup() {
        const store = useStore()
        const state = store.state
        const add = function () {
            store.commit('jiaYi')
        }
        return {
            add
        }
    },

}
</script>
<template>
    <h1 @click="add">{{'count: ' +  $store.state.count }}</h1>
</template>